//
//  XDXLocationManager.h
//  location
//
//  Created by Dongxiang Xu on 2024/6/6.
//

#import <CoreLocation/CoreLocation.h>
#import "GeofenceInfo.h"


typedef void(^ XDXLocationManagerHeadBlock)(CGFloat degree);
typedef void(^ XDXLocationManagerLocationBlock)(NSDictionary *dic);
@interface XDXLocationManager : NSObject

// 向地图传输朝向改变的block
@property (nonatomic,copy) XDXLocationManagerHeadBlock XDXLocationManagerHeadBlock;
// 每产生一个定位点就向地图传输activity，speed，battery，isCharge，经纬度，lastlog等信息
@property (nonatomic,copy) XDXLocationManagerLocationBlock XDXLocationManagerLocationBlock;

@property (nonatomic,strong) NSString *activityString;
@property (nonatomic,strong) CLLocation *lastLocation;
@property (nonatomic,strong) NSString *lastlog;
@property (nonatomic, assign) NSDate *fliterTime;
@property (nonatomic,strong) CLLocationManager *locationManager;
@property (nonatomic,assign) BOOL UIApplicationLaunchOptionsLocationKey;


+ (instancetype)shareInstance;
- (void)setTheActivityString:(NSString *)activityString;
- (void)initialize;
- (void)loadData;
- (void)getUserLocations;

@end

